package Java.BlackHorse.a01CollectionsTest;

import java.util.ArrayList;
import java.util.Collections;

public class Test1 {
    public static void main(String[] args) {
        ArrayList<String> list = new ArrayList<>();
        Collections.addAll(list,"脉劫","雷碧","帅师傅","粤利粤");

//        Random r = new Random();
//        int index = r.nextInt(list.size());
//        System.out.println(list.get(index));

        Collections.shuffle(list);
        System.out.println(list.get(0));

    }

}
